<?php 
      $username = $_REQUEST["username"];
      $wechat   = $_REQUEST["wechat"];
      
      if(!$username || !$wechat){
            die("");
      }

      # 1. 建立链接
      $con = mysql_connect("localhost", "root" , "root");
      # 2. 选择数据库 
      mysql_select_db("jiaju");
      mysql_query("set names utf8");

      # 3. 写sql语句;
      $sql = "INSERT INTO `userlist` 
            (`username`, `wechat`) 
            VALUES
            ('$username' , '$wechat') 
      ";

      mysql_query($sql);

      mysql_close($con);
?>